﻿@model IEnumerable<Ornament.MemberShip.UserGroup>
@{
    ViewBag.Title = "用户组列表";
    Layout = "~/Views/Shared/App.cshtml";
}
<p>
    @Html.ActionLink("创建", "Create", null, new { id = "CreateButton" })
</p>
<table>
    <thead>
        <tr>
            <th>
            </th>
            <th style="width: 200px">
                名称
            </th>
            <th style="width: 200px">
                备注
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.ActionLink("编辑", "Edit", new { id = item.Id }) |
                    @Html.ActionLink("分配角色", "AssignRole", new { id = item.Id }) |
                    @Html.ActionLink("分配用户", "AssignUser", new { id = item.Id }) |
                    @Html.ActionLink("删除", "Delete", new { id = item.Id })
                </td>
                <td>
                    @item.Name
                </td>
                <td>
                    @item.Remark
                </td>
            </tr>
        }
    </tbody>
</table>
@section PageTitle{
用户组列表
}
@section Header
{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#CreateButton").button();
        });
    </script>
}
